//
//  MaterialAcceptMaterialCell.m
//  ERP
//
//  Created by QA on 2016/10/10.
//  Copyright © 2016年 ShangHai HaoLei Software Technology Co., Ltd. All rights reserved.
//

#import "MaterialAcceptMaterialCell.h"

@interface  MaterialAcceptMaterialCell()

@property (nonatomic, strong) MaterialAcceptMaterialCell *view;

@end

@implementation MaterialAcceptMaterialCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.opaque = YES;
        // Initialization code
        NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"MaterialAcceptMaterialCell" owner:self options:nil];
        self.view = [topLevelObjects objectAtIndex:0];
        
        _view.userInteractionEnabled = NO;
        _view.backgroundColor = [UIColor clearColor];
        [self.contentView addSubview:_view];
        
        CGRect frame = self.view.frame;
        frame.size.width = SuperWidth;
        self.view.frame = frame;
        
        self.nameLabel = _view.nameLabel;
    }
    return self;
}

@end
